<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function setPasswordDisabled() {

	if(!document.getElementById('not_change_pass')) {
		return;
	} 
	
	ch = document.getElementById('not_change_pass');
	p = document.getElementById('password');
	p2 = document.getElementById('password_2');
	
	if(ch.checked == true) {
		p.disabled = true;
		p2.disabled = true;
	} else {
		p.disabled = false;
		p2.disabled = false;
	}
}
//-->
</SCRIPT>

{error_msg}

<!-- onSubmit="return validate_employee_form({is_admin});" -->
<form action="{action_link}" method="post" name="" id="">
{hidden_fields}

<table border=0 cellpadding="5" cellspacing="1" width="100%">
<tr> 
	<td colspan="2" class="tdTitle"><b>{action_title}</b> &nbsp;</td>
</tr>
<tr class="trlighter">
	<td class="tdFormCaption">{first_name_msg}: {required_sign}</td>
	<td width="80%"><input name="first_name" type="text" class="longText" id="first_name" value="{first_name}"></td>
</tr>
<tr class="trlighter">
	<td class="tdFormCaption">{last_name_msg}: {required_sign}</td>
	<td><input name="last_name" type="text" class="longText" id="last_name" value="{last_name}"></td>
</tr>
<tr class="trlighter">
	<td class="tdFormCaption">{middle_name_msg}:</td>
	<td><input name="middle_name" type="text" class="longText" id="middle_name" value="{middle_name}"></td>
</tr>
<tr class="trlighter">
	<td class="tdFormCaption">{email_msg}: {required_sign}</td>
	<td><input name="email" type="text" id="email" value="{email}" class="longText"></td>
</tr>

<tr class="trlighter">
	<td class="tdFormCaption">{phone_msg}:</td>
	<td width="80%"><input name="phone" type="text" id="phone" value="{phone}" class="longText"></td>
</tr>

<tmpl:priv_box>
<tr class="trlighter">
	<td class="tdFormCaption" valign="top">{priv_msg}: {required_sign}</td>
	<td valign="top">
		
		<table>
		<tr valign="top">
			<td>{priv_select}</td>
			<td>
			
				<ul>
				<tmpl:priv_description>	
				<li><b>{name}:</b></li>
					{description}<br><br>
				</tmpl:priv_description>	
				</ul>
				
			</td>
		</tr>
		</table>
			
	</td>
</tr>
</tmpl:priv_box>

<tr class="trlighter">
	<td class="tdFormCaption">{username_msg}: {required_sign}</td>
	<td valign="top"><input name="username" type="text" id="username" value="{username}" class="longText"></td>
</tr>

<tr class="trlighter">
	<td class="tdFormCaption">{password_msg}: {required_sign}</td>
	<td valign="top">
	<input type="password" name="password" id="password" class="longText">
	<tmpl:not_change_pass>
	<input type="checkbox" name="not_change_pass" id="not_change_pass" value="1"
	onChange="setPasswordDisabled();" {pass_change_checked}> {not_change_pass_msg}
	</tmpl:not_change_pass>
	</td>
</tr>
<tr class="trlighter"> 
	<td class="tdFormCaption">{password_repeat_msg}: {required_sign}</td>
	<td valign="top"><input type="password" name="password_2" id="password_2" class="longText"></td>
</tr>

<!-- 	
<tr class="trlighter">
	<td class="tdFormCaption"></td>
	<td valign="top">
	<input type="hidden" name="temp_password" value="0">
	<input type="checkbox" name="temp_password" value="1" {ch_temp_password}> The password is temporary (Employee will be prompted to change it.)
	</td>
</tr> 
-->

<tmpl:account>
<tr class="trlighter">
	<td class="tdFormCaption" nowrap>{status_msg}:</td>
	<td>{status_checkbox}</td>
</tr>
</tmpl:account>

<!-- <tr class="trlighter"> 
	<td class="tdFormCaption"></td>
	<td valign="top"><input type="checkbox" name="mail_login_info" value="1" {ch_login_info}> {email_login_info_msg}</td>
</tr> -->

<tr> 
	<td></td>
	<td><div><br></div>
		<input type="submit" name="submit" value="{ok_msg}" class="button">
		<tmpl:account>
		<input type="button" value="{cancel_msg}" onClick="location.href='{cancel_link}'" class="button">
		</tmpl:account>
	</td>
</tr>
</table>
</form>

<img src="images/s.gif" alt="" border="0" onLoad="setPasswordDisabled()">